package top.eggcode.plugins.dict;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * Title: 字典数据标识
 * Description: TODO
 * Date: 2021/6/24 11:04
 *
 * @author JiaQi Ding
 * @version 1.0
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Word {
    /**
     * 字典代号
     */
    @AliasFor("value")
    String dict() default "";

    /**
     * 来源字段
     */
    String source() default "";

    @AliasFor("dict")
    String value() default "";
}
